﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp
{
    public partial class Form11 : Form
    {
        public Form11()
        {
            InitializeComponent();
        }


        static bool formShow1 = false;
        static public bool FormShow1 {
            get { return formShow1; }
            set { formShow1 = value; }
        }

        static bool formShow2 =false;
        static bool FormShow2 {
            get { return formShow2; }
            set { value = formShow2; }
        }
        private void Form11_Load(object sender, EventArgs e)
        {

        }

        private void 子窗体1ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!formShow1) { 
              Form12 form12=new Form12();
                form12.MdiParent= this;
                form12.Show();
                formShow1=true;
            }
        }

        private void 子窗体2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!formShow2)
            {
                Form13 form13 = new Form13();
                form13.MdiParent = this;
                form13.Show();
                formShow2 = true;
            }
        }
    }
}
